CloudEdc.Util.ServerComm = jabberwerx.JWModel.extend({
	
	init: function(){
	
	
	
	},
	
	
	getData : function(arg) {
	if(arg.param){
	var param = JSON.stringify(arg.param);
	}
	if(!arg.errorCallback)
	{
		var errorCallback = this.errorCall;
	}
	$.ajax({url :arg.url,
	data : param,
	success : arg.successCallback,
	error : errorCallback,
	});
       
	
	},
	
	
	saveData : function(arg) {
	var jObject = JSON.stringify(arg.vo);
	$.ajax({
            type:'post',
           cache:false,
             url:arg.url,
            data:{jObject:  jObject}
    });
	},
	
	errorCall : function(jqXHR, textStatus, errorThrown) {

	},
	
	log : function(level, data) {
		jabberwerx.util.debug.log("[" + level + "] " + data);
	},
	
	createIFrame : function(src, div) {
	window.cledu.serverComm.log("[Debug]" + "Inside create Frame");
	
	var iFrameString = '<iframe src=' + src + ' width="100%" height="100%"/>';
		$(iFrameString).appendTo(div);
	
	}
		
	
}, "ServerComm");